#ifndef RECORDEDTIME_H
#define RECORDEDTIME_H

#include <QStandardItemModel>
#include <QTime>
#include <QDate>
#include <QObject>

class RecordedTime;

class RecordedTimeSession : public QObject
{

};

class RecordedTime
{
public:
                           RecordedTime(int order, int elapsed, QString note);

    int                    order();
    QString                time();
    QString                note();
    QString                roundedTime();
    int                    elapsedMSecs();
    bool                   hasWarning();

    void                   toggleWarning();

    QList<QStandardItem*>  standardItemList();

// Returns the time as a string, min:sec.ms
static QString         calculateTimeString(int elapsed);
static QString         calculateRoundedTimeString(int elapsed);
private:
    int     mOrder;
    QString mNote;
    int     mElapsedTime;
    bool    mWarning;
    bool    mHide;
};

#endif // RECORDEDTIME_H
